
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3"></script>
</head>
<body>
    <div id="app">
        <p>{{number+1}}</p>
        <p>{{flag ? 'true':'flase'}}</p>
        <p>{{message.split("").reverse().join(" ")}}</p>
        <p :id="'list-' +id">xxx</p>
        <p>姓名:{{user.name}}</p>
    </div>
    
    <script>
        const { createApp } = Vue
        createApp({
          data() {
            return {
              number:1,
              flag:false,
              message:'ABC',
              id:3,
              user:{
                name:'yw',
                age:18
              }
            }
          }
        }).mount('#app')
      </script>
</body>
</html>